package android15.samples;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;
import com.google.android.maps.OverlayItem;

import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Bundle;

public class MapViewingStoryboard extends MapActivity {
    /** Called when the activity is first created. */
	
	
	/**
	 * Google Map
	 */
	/*
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        MapView mapView = (MapView) findViewById(R.id.mapview);
        mapView.setBuiltInZoomControls(true);

        Drawable drawable = this.getResources().getDrawable(R.drawable.androidmarker);
        HelloItemizedOverlay itemizedoverlay = new HelloItemizedOverlay(drawable);
        
        GeoPoint point = new GeoPoint(19240000,-99120000);
        OverlayItem overlayItem = new OverlayItem(point, "", "");
        
        itemizedoverlay.addOverlay(overlayItem);
        mapView.getOverlays().add(itemizedoverlay);
    }
    */
    
    @Override
    protected boolean isRouteDisplayed() {
        return false;
    }

    /**
     * Google Street View
     */
    /*
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		
		
		double lat = 44.640545;
		double lon = -63.577897;
		
		Intent streetIntent = new Intent(Intent.ACTION_VIEW, 
				Uri.parse("google.streetview:cbll=" + lat + "," + lon + "&cbp=1,180,,0,1.0"));
		
		startActivity(streetIntent);
		
	}
	*/
}